package com.easy.dfc.mapper;


import com.easy.core.persistence.annotation.MyBatisMapper;
import com.easy.dfc.entity.DfcFactoryUpgrade;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

@MyBatisMapper
public interface DfcFactoryUpgradeMapper {

    void addUpgrade(DfcFactoryUpgrade upgrade);

    DfcFactoryUpgrade findByFactoryUpgradeId(@Param(value = "factoryId")Integer factoryId, @Param(value = "upgradeId")Integer upgradeId);

    BigDecimal getUpgradeAmnt(@Param(value = "upgradeId")Integer upgradeId);

    void updateTradeNo(@Param(value = "id")String id, @Param(value = "tradeNo")String tradeNo);

    DfcFactoryUpgrade findByTradeNo(@Param(value = "tradeNo")String tradeNo);

    void updateSucessStatus(@Param(value = "id")Integer id);

    DfcFactoryUpgrade findByFactoryId(@Param(value = "factoryId")Integer factoryId);
}